import CryptoJS from 'crypto-js'
const accessKey = "ivysaas";
const secret = "a85a416fa2460766";
export const Sign = {
	AES_BASE64_MD5(word) {	
		let key = CryptoJS.enc.Utf8.parse(secret);
		let srcs = CryptoJS.enc.Utf8.parse(word);
		let encrypted = CryptoJS.AES.encrypt(srcs, key, {
			mode: CryptoJS.mode.ECB,
			padding: CryptoJS.pad.Pkcs7
		});
		return CryptoJS.MD5(CryptoJS.enc.Utf8.parse(encrypted.ciphertext.toString(CryptoJS.enc.Base64))).toString()
	},
	GET_ACCESS_KEY(){
		return accessKey;
	}
}
